package com.xbts.system.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.xbts.system.domain.CnCloudMarket;
import com.xbts.system.domain.CnVirtuallyUserBuyLog;
import com.xbts.system.domain.vo.CnCloudMarketUserVO;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 云市场Mapper接口
 * 
 * @author xbts
 * @date 2023-08-22
 */
public interface CnCloudMarketMapper extends BaseMapper<CnCloudMarket> {

    List<CnCloudMarketUserVO> userBelongToList(@Param("searchValue") String searchValue, @Param("userId")Long userId);


    @Select("select cloud_market_general_classification,cloud_market_industry_classification,picture,title,market_id, \n " +
            "corporate_name, service_email, service_phone, intro, create_time,lowest_price \n" +
            "from cn_cloud_market ${ew.customSqlSegment} ")
    List<CnCloudMarket> selectCnCloudMarketList(@Param(Constants.WRAPPER) QueryWrapper<CnCloudMarket> queryWrapper);
}
